package cn.ayanami.blog.article.entity.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.r2dbc.repository.R2dbcRepository;

import cn.ayanami.blog.article.entity.po.ArticlePo;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface ArticleDao extends R2dbcRepository<ArticlePo, Integer>{

    Mono<ArticlePo>  findByArticleId(String articleId);

    Flux<ArticlePo> findBy(Pageable page);

    Flux<ArticlePo> findByPublishTypeIn(List<Integer> types, Pageable page);
    
}
